//---------------------------------------------------------------------------


#pragma hdrstop

#include "TSelfControl.h"

//---------------------------------------------------------------------------

#pragma package(smart_init)
float __fastcall TControlRecords::GetBeginTime(const int CutNumber, const float Time)
{
	int i;
	for (i = 0; i < size(); i++) {
		if (at(i).CutNumber == CutNumber) return at(i).BeginTime;
	}
	return 0;
};

void __fastcall TControlRecords::SetBeginTime(const int CutNumber, const float Time)
{
	int i;
	for (i = 0; i < size(); i++)
		if (at(i).CutNumber == CutNumber)
			at(i).BeginTime = Time;
};

float __fastcall TControlRecords::GetEndTime(const int CutNumber, const float Time)
{
	int i;
	for (i = 0; i < size(); i++)
		if (at(i).CutNumber == CutNumber) return at(i).EndTime;
	return 0;
};

void __fastcall TControlRecords::SetEndTime(const int CutNumber, const float Time)
{
	int i;
	for (i = 0; i < size(); i++)
		if (at(i).CutNumber == CutNumber)
			at(i).EndTime = Time;
};

__fastcall TSelfControl::TSelfControl()
{
	WeightClassLevelQuantity = 4;
	
}
